const STORAGE_KEY = 'account_book';

export default {
  get() {
    return JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]');
  },
  set(data) {
    localStorage.setItem(STORAGE_KEY, JSON.stringify(data));
  },
};